﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Chaina.Data
{
    public interface IDao<Entity, IdType>
    {
        Entity GetByID(IdType ID);
        List<Entity> GetAll();
        List<Entity> GetByExample(Entity exampleInstance, IList<string> propertiesToExclude);
        Entity SaveOrUpdate(Entity entity);
        void Delete(Entity entity);
    }
}
